﻿<Window x:Class="AppCommerciaux.Views.AccueilPrincipalView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dictionary="AppCommerciaux.Dictionary1"
        xmlns:localViewModels="AppCommerciaux.ViewModels"
        xmlns:localViews="AppCommerciaux.Views"
        xmlns:localConverter="clr-namespace:AppCommerciaux.converter"
        Title="Projet Fil Rouge Cesi 2014-2015" Height="700" Width="1200"
        WindowStartupLocation="CenterScreen"
        xmlns:vms="clr-namespace:AppCommerciaux.ViewModels"
        xmlns:vs="clr-namespace:AppCommerciaux.Views" Closing="Window_Closing_1">

    <DockPanel>
        <!-- EN TETE -->
        <Label Foreground="White" x:Name="labelHeader" Background="{DynamicResource {x:Static SystemColors.MenuHighlightBrushKey}}" DockPanel.Dock="Top" MinHeight="50">
            <Label.Content>
                <Grid Width="{Binding ActualWidth, ElementName=labelHeader}" Height="40">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <TextBlock x:Name="textHeader" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Century Gothic"  FontSize="16"  FontStretch="UltraExpanded"  FontStyle="Italic"  FontWeight="UltraBold" Foreground="White" >
                        PlastProd Nomade - Application de gestion
                    </TextBlock>
                    <Image Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="top"  Source="http://www.cortep.tuiasi.ro/sponsors_logo/plastprod.png">
                        
                    </Image>
                </Grid>
            </Label.Content>
        </Label>

        <!-- Pied de Page -->
        <Label x:Name="labelFooter" Background="{DynamicResource {x:Static SystemColors.MenuHighlightBrushKey}}" DockPanel.Dock="Bottom" MinHeight="50" Panel.ZIndex="10" >
            <Label.Content>
                <Grid Width="{Binding ActualWidth, ElementName=labelFooter}" Height="40">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <TextBlock x:Name="textFooter" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="top" Foreground="White">
                            
                    </TextBlock>

                    <ProgressBar x:Name="progressBarFooter" Grid.Column="2" Height="30"/>
                    <TextBlock x:Name="textProgressBarFooter" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">
                         
                    </TextBlock>
                </Grid>
            </Label.Content>
        </Label>

        <!-- Menu Gauche -->
        <!--TODO definir un style pour les bouton https://msdn.microsoft.com/fr-fr/library/ms745683%28v=vs.110%29.aspx-->
        <Label Foreground="White" Background="{DynamicResource {x:Static SystemColors.MenuHighlightBrushKey}}" DockPanel.Dock="Left" MinWidth="150">
            <Label.Content>
                <Grid x:Name="menuGrid" MinWidth="150">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="20"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="20"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="20"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="20"/>
                        <RowDefinition Height="40"/>
                        <RowDefinition Height="20"/>
                        <RowDefinition Height="40"/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="Menu"
                           Grid.Row="1"
                           HorizontalAlignment="Center"/>
                    <Button x:Name="buttonSynchronisation" Content="Synchronisation"
                        Width="110"
                        HorizontalAlignment="Center"
                        Grid.Row="3" Click="buttonSynchronisation_Click" IsEnabled="False"/>
                    <Button x:Name="buttonClient" Content="Client"
                        Width="110"
                        HorizontalAlignment="Center"
                        Grid.Row="5" Click="ButtonClient_Click" IsEnabled="False"/>
                    <Button x:Name="buttonCommande" Content="Commande"
                        Width="110"
                        HorizontalAlignment="Center"
                        Click="ButtonCommande_Click"
                        Grid.Row="7" IsEnabled="False"/>
                    <Button x:Name="buttonRendezVous" Content="Rendez-Vous"
                        Width="110"
                        HorizontalAlignment="Center"
                        Grid.Row="9"
                        Click="ButtonRDV_Click" IsEnabled="False"/>
                    <Button x:Name="buttonChangerMdp" Content="Changer Mot de Passe"
                        Width="125"
                        HorizontalAlignment="Center"
                        Grid.Row="9" IsEnabled="False" Click="buttonChangerMdp_Click" Margin="10,255,15,-240"/>                    
                <Expander x:Name="ExpanderConnexion" Header="...Ma connexion" Height="140" Margin="20,100,0,-200" Grid.Row="9" HorizontalAlignment="Left" VerticalAlignment="Top" Width="110">
                    <Button x:Name="buttonDeconnexion" Content="Déconnexion" HorizontalAlignment="Left" Height="20" Margin="10,0,0,0" Width="90" Click="buttonDeconnexion_Click" IsEnabled="False"/>
                    </Expander>


                </Grid>
            </Label.Content>
        </Label>

        <!-- Partie Centrale -->
        <Label x:Name="centralLabel" Background="White">
            <Label.Content>
                <Grid x:Name="centralGrid">
                    
                </Grid>
            </Label.Content>
        </Label>
    </DockPanel>
    
   
</Window>
